<br />
<b>Cargos</b>
<hr />
<div class="row">
	<?php echo CHtml::Label('searchText','search'); ?>
	<?php echo CHtml::TextField('searchText'); ?>
</div>
<div class="row">
<?php
	$this->widget('zii.widgets.grid.CGridView',array(
			'id'=>"cargo-grid",
			'dataProvider'=>$model->NeedExport(),
			'template'=>"{items}\n{pager}",
			'columns'=>array(
				array(
					'value'=>'$data->in_date',
					'header'=>'Date received',
					'type'=>'date',
				),
				array(
					'class'=>'CLinkColumn',
					'header'=>'Marking',
					'labelExpression'=>'$data->marking',
					'urlExpression'=>'CHtml::normalizeUrl(array("cargo/view","id"=>$data->id))'
				),
				array(
					'value'=>'$data->consignee->cname',
					'header'=>'Consignee',
				),
				array(
					'header'=>'Dimension',
					'value'=>'$data->dimension->qty.$data->dimension->qty_type." / ".$data->dimension->wt.$data->dimension->wt_type." / ".$data->dimension->m3',
				),
				array(
					'class'=>'CLinkColumn',
					'label'=>'Add',
					'urlExpression'=>'CHtml::normalizeUrl(array("cargo_export/create","cargo_id"=>$data->id,"export_id"=>'.$export_id.'))',
					'linkHtmlOptions'=>array('id'=>'add_cargo'),
				),
			),
		));
?>

</div>